package com.syh.jn.scm.service.api.upstream.base;

import cn.redscarf.commons.wrapper.Wrapper;
import com.syh.jn.scm.dto.upstream.base.UpBusinessEntityGoodsOfferMto;
import com.syh.jn.scm.dto.upstream.base.UpBusinessEntityGoodsOfferSto;
import com.syh.jn.scm.dto.upstream.base.UpBusinessEntityGoodsOfferVo;
import com.syh.jn.scm.service.core.BaseService;

import java.util.List;

public interface UpGoodsOfferService extends BaseService<UpBusinessEntityGoodsOfferSto, UpBusinessEntityGoodsOfferMto, UpBusinessEntityGoodsOfferVo, Long> {
  /**
   * 启用
   * @param id
   */
  void enabled(Long id);
  /**
   * 停用
   * @param id
   */
  void disabled(Long id);
  /**
   * 修改集合
   * @param mtoList
   */
  void updateList(List<UpBusinessEntityGoodsOfferMto> mtoList);
  /**
   * 保存集合
   * @param stoList
   */
  void saveList(List<UpBusinessEntityGoodsOfferSto> stoList);
  /**
   * 根据上游供应商所有通过审核了的关联商品报价
   * @param we
   * @return
   */
  public List<UpBusinessEntityGoodsOfferVo> findGoodsOfferByUpStream(Wrapper we);
}
